/**
 * @project heima-leadnews
 * @author MECHREVO
 * @date 2024/1/23 10:22:22
 * @version 1.0
 */
package com.heima.Kafka.Web;

import org.springframework.kafka.annotation.KafkaListener;
import org.springframework.stereotype.Component;

@Component
public class HelloListener {

    @KafkaListener(topics = "hello-Topic")
    public void listen(String msg){
        System.out.println("msg = " + msg);
    }
}
